package current.limiting.commom.exception.handler;

import current.limiting.commom.exception.CurrentLimitException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author LiKun
 * @date 2021/10/25 23:44
 */
@RestControllerAdvice
public class CurrentLimitExceptionHandler {
    @ExceptionHandler(CurrentLimitException.class)
    public Object currentLimitExceptionHandler() {
        return CurrentLimitException.MESSAGE;
    }
}
